/*============================================================================
 * Project    : TaobaoMobile
 * Name       : GuiControlFactory.h
 * Author     : Administrator
 * Version    : 1.0
 * Copyright  : Copyright (c) 2009,Aspire-tech technology com, Ltd.
 * All rights reserved.
 * Created on : 2010-9-1 ����08:20:35
 * Description: {description}
 *============================================================================
 */

#ifndef GUICONTROLFACTORY_H_
#define GUICONTROLFACTORY_H_

#include <coecntrl.h>
#include "CbaImage.h"
#include "TitleBar.h"
#include "InfoBar.h"
#include "ContainerControl.h"
#include "ListBox.h"
#include "ListItem.h"
#include "ListThemeItem.h"
#include "BitmapUtil.h"

class CGuiControlFactory
{
public:
    static CCbaImage* CreateCbaBar(const TRect& aFormRect,const CCoeControl* aParent,
            const TDesC& aLeftText = _L(""), const TDesC& aRightText = _L(""));
    static CTitleBar* CreateTitleBar(const TDesC& aTitleText = _L(""));
    static CInfoBar* CreateInfoBar();
    static CListBox* CreateListBox(const TRect& aRect, const CCoeControl* aParent);
    static CContainerControl* CreateContainer(const TRect& aRect, const CCoeControl* aParent);
    static void AddListItemL(CListBox* aOwner, const TDesC& aTitle);
    static void AddListItemL(CListBox* aOwner, const TDesC& aID, 
            const TDesC& aName,const TDesC& aXZ,
            const TDesC& aSize,const TDesC& aRq,TInt aBitmap = -1);
};

#endif /* GUICONTROLFACTORY_H_ */
